import { IsString, Length } from 'class-validator';

export class LoginUserDto {
  @IsString({ message: 'name必须是字符串类型' })
  username: string;
  @IsString({ message: 'password必须是字符串类型' })
  @Length(3, 20, { message: 'password长度大于6' })
  password: string;
  @IsString({ message: 'head_img必须是字符串类型' })
  head_img: string;
}
